package com.ll.menu.user.dialog;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.droid.library.app.App;
import com.droid.library.dialog.AbsDialog;
import com.ll.menu.user.R;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

/**
 * 拍卖Dialog
 *
 * @author wangheng
 */

public class SaleDialog extends AbsDialog {

    @InjectView(R.id.tvSaleDialogFoodName)
    TextView mFoodNameTextView;

    @InjectView(R.id.etSaleDialogInput)
    EditText mEditTExt;

    private String mFormat = "";


    public SaleDialog(@NonNull Context context) {
        super(context);
    }

    protected SaleDialog(@NonNull Context context,
                         boolean cancelable,
                         @Nullable OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_sale);

        ButterKnife.inject(this);

        mFormat = App.getInstance().getString(R.string.sale_dialog_message_mode);
        mFoodNameTextView.setText(String.format(mFormat,"紫菜蛋花汤"));
    }

    @OnClick({R.id.tvSaleDialogCancel,R.id.tvSaleDialogCommit})
    public void onClick(View view){
        switch (view.getId()){
            case R.id.tvSaleDialogCancel:

                break;
            case R.id.tvSaleDialogCommit:

                break;
            default:

                break;
        }
    }
}
